﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_Iask_query_Show.aspx.cs" Inherits="aspnet_admin_bock_keyWord_CX_keyWord_Show" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    &nbsp;<table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" style="height: 30px">
                搜索提问</td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                提示信息:<asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                搜索提问名称:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:TextBox ID="ask_query_name" runat="server" MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" style="height: 27px">
                <center>
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="搜索" /></center>
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView id="GridView1"

     runat="server" CssClass="border" PageSize="200" CellPadding="3" 
        EmptyDataText="没有数据请添加" Width="100%" AutoGenerateColumns="False" 
        DataKeyNames="ask_query_id" 
 ><Columns>
        <asp:BoundField DataField="ask_query_id" HeaderText="编号" InsertVisible="False"
            ReadOnly="True" SortExpression="ask_query_id" >
            <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
        <asp:BoundField DataField="ask_query_name" HeaderText="提问名" SortExpression="ask_query_name" >
                    <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
     <asp:TemplateField HeaderText="提问状态">
         <EditItemTemplate>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label1"  Text='<%# Ask.IakGetAskState(Eval("ask_query_state").ToString())%>' runat="server"></asp:Label>&nbsp;
         </ItemTemplate>
     </asp:TemplateField>
     
          <asp:TemplateField HeaderText="提问分类">
         <EditItemTemplate>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         </EditItemTemplate>
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
             <asp:Label ID="Label1"  Text='<%# Ask.IaskGetColumnTable(Eval("Coulmn_id").ToString()).Rows[0][2].ToString()%>' runat="server"></asp:Label>&nbsp;
         </ItemTemplate>
     </asp:TemplateField>
        
        
            <asp:templatefield HeaderText="推荐问题" SortExpression="ask_query_id">
                <edititemtemplate>
                    <asp:TextBox ID="TextBox2" runat="server" 
                        Text='<%# Bind("ask_query_id") %>'></asp:TextBox>
                </edititemtemplate>
                <itemtemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%#Ask.Tuijianwenti(Eval("ask_query_id").ToString(),0) %>'></asp:Label>
                </itemtemplate>
                <headerstyle cssclass="topbg" height="30px" horizontalalign="Center" />
                <itemstyle cssclass="tdbg" />
            </asp:templatefield>
        
        
        <asp:BoundField DataField="ask_query_time" HeaderText="提问时间" SortExpression="ask_query_time" >
               <ItemStyle CssClass="tdbg" />
            <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
        </asp:BoundField>
     <asp:TemplateField HeaderText="操作" ShowHeader="False">
         <ItemStyle CssClass="tdbg" />
         <HeaderStyle CssClass="topbg" Height="30px" HorizontalAlign="Center" />
         <ItemTemplate>
         
          <a href="answer/CX_Iask_Answer.aspx?id=<%#Eval("ask_query_id") %>"> 查看 回答 数据　</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

              <a href="CX_Iask_query_Edit.aspx?id=<%#Eval("ask_query_id") %>"> 编辑
               <%#("ask_query_name")%>
               
               数据</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

           <a href="javascript:Del('CX_Iaskquery_Del.aspx?id=<%#Eval("ask_query_id") %>','<%#Eval("ask_query_name")%>');"> 删除</a>
           
            
              
         </ItemTemplate>
     </asp:TemplateField>
</Columns>
</asp:GridView>
    <div id="Div" runat="server"></div>
</asp:Content>

